package com.jpx.jxcbiz.service.impl;

import com.jpx.common.dto.ReturnDto;
import com.jpx.jxcbiz.entity.TReturnList;
import com.jpx.jxcbiz.mapper.TReturnListMapper;
import com.jpx.jxcbiz.service.ITReturnListService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jpx.jxcbiz.vo.PurchaseReceiptQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-24
 */
@Service
public class TReturnListServiceImpl extends ServiceImpl<TReturnListMapper, TReturnList> implements ITReturnListService {

    @Autowired
    TReturnListMapper returnListMapper;

    @Override
    public List<PurchaseReceiptQuery> returnDocumentQuery(ReturnDto returnDto) {
        return returnListMapper.returnDocumentQuery(returnDto);
    }

    @Override
    public void save(TReturnList returnList) {
        returnListMapper.save(returnList);
    }
}
